<?php

namespace app\common\validate;

class AdminMenu extends BaseValidate
{
    protected $rule = [
        'name' => 'require|max:10',
        'app' => 'require',
        'controller' => 'require',
    ];

    protected $message = [
        'name.require' => '菜单名为必填项',
        'name.max' => '名称最多不能超过40个字符',
        'app' => '应用名不能为空',
        'controller' => '控制器名不能为空',
    ];
}